package com.sky.disruptor.handler;

import com.alibaba.fastjson.JSONObject;
import com.lmax.disruptor.WorkHandler;
import com.sky.disruptor.entity.OrderEntity;

public class OrderHandler2 implements WorkHandler<OrderEntity> {

    @Override
    public void onEvent(OrderEntity orderEntity) throws Exception {
        //System.out.println(Thread.currentThread().getName() + "========消费者处理OrderHandler2========" + JSONObject.toJSONString(orderEntity));
        System.out.println(orderEntity.getOrderId());
    }
}
